<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const person = {
        firstName: "li",
        lastName: "jack",
        get fullName() {
          return `${this.lastName} ${this.firstName}`;
        },
        set fullName(value) {
          [this.lastName, this.firstName] = value.split(" ");
        },
      };
      const u1 = {
        // lastName:'lili'
        // firstName:'wang'
        __proto__: person,
        // set fullName(value) {
        //   [u1.lastName, u1.firstName] = value.split(" ");
        // },
      };
      u1.fullName = "lili wang";
      console.log(u1.fullName);
      console.log("person", person);
      console.log("u1", u1);
    </script>
  </body>
</html>
